﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="myPizza.aspx.vb" Inherits="Project1.myPizza" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../Assignment/pizzaStyles.css" />
    <style type="text/css">
        #Button1
        {
            width: 101px;
        }
    </style>
    <script language="javascript" type="text/javascript">
// <![CDATA[

        function Button1_onclick() {

        }

// ]]>
    </script>
</head>
<body>
    <div id="leftBar"></div>
    <div id="centerContent">
    <div id="Div2"><center>
    <asp:Image ID="Image1" ImageUrl="../Resources/pizzaLogo.png" runat="server" />
    </center>
    </div>
    <form id="form1" runat="server">

    <div id="custInfo">
            <asp:TextBox ID="txtName" runat="server"   
            Style="z-index: 102; left: 70px; position: absolute; top: 29px; width: 163px;"></asp:TextBox>
            <asp:Label ID="lblAddr" runat="server" ForeColor="White"  
            Style="z-index: 103; left: 8px;  position: absolute; top: 78px; height: 24px; bottom: 98px;" 
            Text="Address:" Width="52px" AssociatedControlID="txtAddr"></asp:Label>
            <asp:TextBox ID="txtAddr" runat="server" 
            Style="z-index: 101; left: 71px; position: absolute; top: 80px; width: 161px;"></asp:TextBox>
            <asp:Label ID="lblName" runat="server"  
            Style="z-index: 100; left: 17px; position: absolute; top: 29px; height: 23px; width: 46px;" 
            Text="Name:" AssociatedControlID="txtName"></asp:Label>

            <div id="postOrdLbl">
            <asp:Label ID="lblOrderInfo" runat="server" Text="Order Details:" Visible="false"></asp:Label><br /><br />
            <asp:Label ID="lblDispName" runat="server" Text="Label" Visible="False"></asp:Label><br /><br />
            <asp:Label ID="lblDispAddr" runat="server" Text="Label" Visible="False"></asp:Label><br /><br />
            <asp:Label ID="lblDispDelivery" runat="server" Text="Label" Visible="False"></asp:Label><asp:Label ForeColor="Red"  ID="lblBadValidation" runat="server" Text="" Visible="false"></asp:Label><br /><br />
            <div id="error"></div>
            </div>

            <div id="radioList">
            <asp:RadioButtonList ID="radBtnDeliveryType" runat="server">
                <asp:ListItem Selected="True">Delivery</asp:ListItem>
                <asp:ListItem Value="Take-out"></asp:ListItem>
            </asp:RadioButtonList>
            </div>
            
    </div>

    <div id="pizzaInfo">
        <div id="gridView">
        <asp:GridView ID="gvPizza" runat="server" 
            Width="346px" AutoGenerateColumns="False" style="margin-left: 25px">
            <Columns>
                <asp:TemplateField HeaderText="Select Pizza">
                    <ItemTemplate>
                        <asp:CheckBox ID="chkSelectPizza" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="PizzaType" HeaderText="Type of Pie" />
                <asp:TemplateField HeaderText="Size">
                    <ItemTemplate>
                        <asp:DropDownList ID="pizzaSizeDropDown" runat="server">
                            <asp:ListItem>Small</asp:ListItem>
                            <asp:ListItem>Medium</asp:ListItem>
                            <asp:ListItem>Large</asp:ListItem>
                        </asp:DropDownList>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Quantity">
                    <ItemTemplate>
                        <asp:TextBox ID="txtQtyOrd" runat="server" Width="34px"></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:GridView ID="gvOrder" runat="server" Visible="False" 
            AutoGenerateColumns="False" Height="49px" ShowFooter="true">
            <Columns>
                <asp:BoundField DataField="pizzaType" HeaderText="Pizza Type" />
                <asp:BoundField DataField="pieSize" HeaderText="Size" />
                <asp:BoundField DataField="quantity" HeaderText="Qty" />
                <asp:BoundField DataField="piePrice" HeaderText="Price" />
                <asp:BoundField DataField="total" HeaderText="Total Cost" />
                <asp:BoundField DataField="isCoupon" HeaderText="Coupon" />
            </Columns>
        </asp:GridView>

        <asp:GridView ID="gvReport" runat="server" Visible="False" 
                AutoGenerateColumns="False" Height="50px" ShowFooter="True">
            <Columns>
                <asp:BoundField DataField="PizzaType" HeaderText="Pizza Type" />
                <asp:BoundField DataField="TotalSales" HeaderText="Sales" />
            </Columns>
            </asp:GridView>
        </div>
    </div>

    <div id="buttons">
        &nbsp;<asp:Button ID="btnSubmitOrder" runat="server" Text="Submit Order" /> &nbsp &nbsp 
        <asp:Button ID="mgmtReport" runat="server" Text="Management Report" /> &nbsp &nbsp
        <asp:Button ID="btnResetOrder" runat="server" Text="Another Order" />  
        <br /><br />
    </div>
    </form>
    </div>
    <div id="rightBar"></div>
    <div id="footer"></div>
    <p>
        &nbsp;</p>
</body>
</html>
